package com.briup.bookstore.common.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 实体类 - 订单
 * @author YuYan
 * @date 2023-12-26 20:19:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Order {

    @JsonProperty("orderId")
    private String id;
    private Integer userId;
    private Date createDate;
    private String payWay;
    private Integer trackingNumber;
    private String distributionMode;
    private Integer status;
    private Date payDate;
    private String receiveUsername;
    private String receiveAddress;
    private String receivePhone;
    private User user;

    private List<OrderItem> orderItems;
}
